package com.cqjtu.eecs.service;

import com.cqjtu.eecs.entity.Course;
import com.cqjtu.eecs.entity.ProjectCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqjtu.eecs.entity.vo.CourseOutlineVO;
import com.cqjtu.eecs.entity.vo.TrainingProjectCourseVO;

import java.util.List;

/**
 * <p>
 * 培养方案-课程 服务类
 * </p>
 *
 * @author    luojun
 * @since 2022-03-07
 */
public interface IProjectCourseService extends IService<ProjectCourse> {
    // 获取课程教学大纲
    CourseOutlineVO getCourseOutline(Integer year, String majorCode, String name);

    TrainingProjectCourseVO getTrainingProjectCourseVOByPid(String pid);

    TrainingProjectCourseVO getPracticalCourseListByPid(String pid);


    /**
     * 获取方案-课程编号
     * @param grade 年级
     * @param majorName 专业名
     * @param courseName   课程名
     * @return
     */
    Integer getProjectCourseId(Integer grade, String majorName, String courseName);

    List<Course> listProjectCourseByYearAndMajorCode(Integer year, String majorCode);
}
